<?php //pack11class

class GetQueryObject {

    const PROPERTY="property";
    const SETTING="setting";

    public $properties=array();
    public $settings=array();
    public $type;
    public $traceEnabled=true;

    public function setValue($item,$type=self::PROPERTY) {
        //trace($item->system." ".$item->value." ".$type);
        if($type==self::PROPERTY) {
            $this->properties[$item->id]=$item->value;
        } else {
            $this->settings[$item->id]=$item->value;
        }
    }

    public function __toString() {
        return "GetQueryObject";
    }

}
?>
